import { IColumnsType } from "./interface";
export const SOURCE_OPTIONS = [
  {
    value: 'basis',
    label: '基础单词',
  },
  {
    value: 'core',
    label: '核心单词',
  },
  {
    value: 'advanced',
    label: '进阶单词',
  }
];

export const SOURCE_KEYS = {
  'basis': '基础单词',
  'core': '核心单词',
  'advanced': '进阶单词'
};

export const getProperty = (obj: IColumnsType, key: keyof IWordListItem) => {
  return obj[key];
}